package com.nandi.deviceinstall.contract

import com.nandi.deviceinstall.base.BaseView
import com.nandi.deviceinstall.bean.BaseObjectBean
import com.nandi.deviceinstall.bean.LoginBean
import com.nandi.deviceinstall.bean.TapRecordInfoBean

import io.reactivex.Flowable
import okhttp3.ResponseBody


interface TapRecordInfoContract {
    interface Model {
        fun executeTapRecordInfo(token: String, id: Int): Flowable<TapRecordInfoBean>
        fun executeDownPic(token: String, path: String): Flowable<ResponseBody>
    }

    interface View : BaseView {
        override fun showLoading()

        override fun hideLoading()

        override fun onError(msg: String, code: Int)

        fun handlerTapRecordResult(t: TapRecordInfoBean)

        fun downPicSuccess(result: ResponseBody, fileName: String)
    }

    interface Presenter {
        fun requestTapRecordInfo(token: String, id: Int)

        fun requestDownPic(token: String, path: String)
    }
}
